/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.area_info_his.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 车位历史信息Entity
 * @author admin
 * @version 2019-04-15
 */
public class AreaInfoHis extends DataEntity<AreaInfoHis> {
	
	private static final long serialVersionUID = 1L;
	private String areaName;		// 区域名称
	private String rate;		// 车位占用率
	private String totalSpace;		// 总车位
	private String remainSpace;		//剩余车位
	private String timePeriod;		// 时间段
	private String areaId;		// 区域id
	
	public AreaInfoHis() {
		super();
	}

	public AreaInfoHis(String id){
		super(id);
	}

	public String getRemainSpace() {
		return remainSpace;
	}

	public void setRemainSpace(String remainSpace) {
		this.remainSpace = remainSpace;
	}

	@Length(min=0, max=64, message="区域名称长度必须介于 0 和 64 之间")
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@Length(min=1, max=10, message="车位占用率长度必须介于 1 和 10 之间")
	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}
	
	@Length(min=0, max=64, message="总车位长度必须介于 0 和 64 之间")
	public String getTotalSpace() {
		return totalSpace;
	}

	public void setTotalSpace(String totalSpace) {
		this.totalSpace = totalSpace;
	}
	
	@Length(min=1, max=10, message="时间段长度必须介于 1 和 10 之间")
	public String getTimePeriod() {
		return timePeriod;
	}

	public void setTimePeriod(String timePeriod) {
		this.timePeriod = timePeriod;
	}
	
	@Length(min=0, max=64, message="区域id长度必须介于 0 和 64 之间")
	public String getAreaId() {
		return areaId;
	}

	public void setAreaId(String areaId) {
		this.areaId = areaId;
	}
	
}